import request from '@/axios'

/* 查询列表 */
export const taskResourceApi = (data: {}): Promise<IResponse> => {
  return request.post({ url: '/task_get', data })
}

/* 删除 */
export const deleteTaskApi = (data: {}): Promise<IResponse> => {
  return request.post({ url: '/task_del', data })
}

/* 添加 */
export const addTaskResourceApi = (data: {}): Promise<IResponse> => {
  return request.post({ url: '/task_add', data })
}
/* 修改 */
export const updateTaskApi = (data: {}): Promise<IResponse> => {
  return request.post({ url: '/task_edit', data })
}

// 查询详情
export const taskInfoApi = (data: { id: Number }): Promise<IResponse> => {
  return request.post({ url: '/task_get_id', data })
}
